package org.example.hansp.method;


public class MethodParameter {
    public static void main(String[] args) {
        int a=10;
        int b=20;
        swap(a,b);
        System.out.println(a+" "+b);

    }
    public static void swap(int a, int b) {
        int temp=a;
        a=b;
        b=temp;
        System.out.printf("a=%d, b=%d\n", a, b);
    }
}
